<template>
    <div class="goodComt_box">
        <h3>{{ info.title }}</h3>
        <hr>
        <div class="infoContent" v-html="info.content"></div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            id:this.$route.params.id,
            info:{}
        }
    },
    created(){
        this.getInfolist()
    },
    methods:{
        getInfolist(){
            this.$http.get('api/goods/getdesc/'+this.id).then(res=>{
                this.info = res.body.message[0]
            })
        }
    }
}
</script>
<style lang="scss">
.goodComt_box {
    padding: 0 5px;
    h3 {
        font-size: 18px;
        color:yellow;
        text-align: center;
        padding: 5px 0;
    }
    .infoContent {
        img {
            width: 100%;
        }
    }
    
}
</style>